From e4a2ba75935f318caf4893f90d424a8460ca8859 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 22 May 2006 00:42:55 +0000 Subject: [PATCH] Revert part of r14280 which broke history paging on 32-bit systems. --- RELEASE-NOTES | 1 - includes/PageHistory.php | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8501aab356..145a101402 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -291,7 +291,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5971) Improvement to German localisation (de) * (bug 4873) Don't overwrite the subtitle navigation when viewing a redirect page that isn't current -* Enforce the standard upper limit when accessing page histories * (bug 2203) Namespace updates for Thai * Fix breakage in parser test suite which caused incorrect reporting of the failure of {{NUMBEROFFILES}}. Now initialises the site_stats table with some dumb data. Updated diff --git a/includes/PageHistory.php b/includes/PageHistory.php index e177599bce..4cfee47a89 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -87,7 +87,8 @@ class PageHistory { * Extract limit, the number of revisions to show, and * offset, the timestamp to begin at, from the URL. */ - list( $limit, $offset ) = wfCheckLimits( $this->defaultLimit ); + $limit = $wgRequest->getInt('limit', $this->defaultLimit); + $offset = $wgRequest->getText('offset'); /* Offset must be an integral. */ if (!strlen($offset) || !preg_match("/^[0-9]+$/", $offset)) -- 2.20.1